package com.hitqz.robot.api.business.model.vo.robot;

import com.hitqz.robot.api.business.enums.BrandEnum;
import com.hitqz.robot.api.business.enums.EquipmentEnum;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测设备
 */
@Schema(description = "机器人外设")
public class RobotEquipmentVo {
    @Schema(description = "id")
    private Long id;
    @Schema(description = "外设类型")
    private Integer type;
    @Schema(description = "外设类型文本")
    private String typeStr;
    @Schema(description = "品牌英文")
    private String brand;
    @Schema(description = "品牌中文显示")
    private String brandStr;
    @Schema(description = "名称")
    private String name;
    @Schema(description = "ip")
    private String ip;
    @Schema(description = "账号")
    private String username;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "端口")
    private Integer port;
    @Schema(description = "是否支持预览 0-否 1-是")
    private Integer isPlay;
    @Schema(description = "预览地址")
    private String playUrl;
    @Schema(description = "是否显示控制面板 0-否 1-是")
    private Integer showPanel;
    @Schema(description = "是否支持检测 0-否 1-是")
    private Integer isDetect;
    @Schema(description = "是否支持参数标定 0-否 1-是")
    private Integer isRecordParam;
    @Schema(description = "通道号 提示：海康从1开始,大华从0开始")
    private Integer channel;

    @Schema(description = "其他高级配置")
    private String extraConfig;

    @Schema(description = "绑定点位名称")
    private String bindPosName;

    @Schema(description = "绑定点位id")
    private String bindPosId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getIsPlay() {
        return isPlay;
    }

    public void setIsPlay(Integer isPlay) {
        this.isPlay = isPlay;
    }

    public String getPlayUrl() {
        return playUrl;
    }

    public void setPlayUrl(String playUrl) {
        this.playUrl = playUrl;
    }

    public Integer getShowPanel() {
        return showPanel;
    }

    public void setShowPanel(Integer showPanel) {
        this.showPanel = showPanel;
    }

    public Integer getIsDetect() {
        return isDetect;
    }

    public void setIsDetect(Integer isDetect) {
        this.isDetect = isDetect;
    }

    public Integer getIsRecordParam() {
        return isRecordParam;
    }

    public void setIsRecordParam(Integer isRecordParam) {
        this.isRecordParam = isRecordParam;
    }

    public String getTypeStr() {
        return EquipmentEnum.TYPE_DES_MAP.get(type);
    }

    public void setTypeStr(String typeStr) {
        this.typeStr = typeStr;
    }

    public String getBrandStr() {
        return BrandEnum.EN_CN_MAP.get(brand);
    }

    public void setBrandStr(String brandStr) {
        this.brandStr = brandStr;
    }

    public Integer getChannel() {
        return channel;
    }

    public void setChannel(Integer channel) {
        this.channel = channel;
    }

    public String getExtraConfig() {
        return extraConfig;
    }

    public void setExtraConfig(String extraConfig) {
        this.extraConfig = extraConfig;
    }

    public String getBindPosName() {
        return bindPosName;
    }

    public void setBindPosName(String bindPosName) {
        this.bindPosName = bindPosName;
    }

    public String getBindPosId() {
        return bindPosId;
    }

    public void setBindPosId(String bindPosId) {
        this.bindPosId = bindPosId;
    }
}
